﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BusinessModel
{
    public class BuyOrder : BaseModel
    {
        #region Primitive Properties
        public Nullable<global::System.Int32> BuyerId
        {
            get
            {
                return _BuyerId;
            }
            set
            {
                _BuyerId = value;
                OnPropertyChanged("BuyerId");
            }
        }
        private Nullable<global::System.Int32> _BuyerId;

        public global::System.String BuyerUsername
        {
            get
            {
                return _BuyerUsername;
            }
            set
            {
                _BuyerUsername = value;
                OnPropertyChanged("BuyerUsername");
            }
        }
        private global::System.String _BuyerUsername;
        #endregion

        //BuyOrderDetails
        private IList<BuyOrderDetail> _BuyOrderDetails;
        public IList<BuyOrderDetail> BuyOrderDetails
        {
            get
            {
                if (_BuyOrderDetails == null)
                    _BuyOrderDetails = new List<BuyOrderDetail>();
                return _BuyOrderDetails;
            }
            set
            {
                _BuyOrderDetails = value;
                OnPropertyChanged("BuyOrderDetails");
            }
        }

        #region Extend Properties
        //UserName
        private string _UserName;
        public string UserName
        {
            get { return _UserName; }
            set
            {
                _UserName = value;
                OnPropertyChanged("UserName");
            }
        }
        #endregion Extend Properties
    }
}

